home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 61 | 72 68 31 30 38 2e 69 74 |Path: ba|rh108.it|
|00000010| 73 2e 72 70 69 2e 65 64 | 75 21 68 61 73 68 69 6b |s.rpi.ed|u!hashik|
|00000020| 0a 46 72 6f 6d 3a 20 4b | 65 6e 67 6f 20 48 61 73 |.From: K|engo Has|
|00000030| 68 69 6d 6f 74 6f 20 3c | 68 61 73 68 69 6b 40 72 |himoto <|hashik@r|
|00000040| 70 69 2e 65 64 75 3e 0a | 4e 65 77 73 67 72 6f 75 |pi.edu>.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 2b |ps: comp|.lang.c+|
|00000060| 2b 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 73 |+.Subjec|t: Re: s|
|00000070| 70 72 69 6e 74 66 28 29 | 20 69 6e 20 43 2b 2b 0a |printf()| in C++.|
|00000080| 44 61 74 65 3a 20 57 65 | 64 2c 20 31 30 20 41 70 |Date: We|d, 10 Ap|
|00000090| 72 20 31 39 39 36 20 30 | 30 3a 32 38 3a 30 37 20 |r 1996 0|0:28:07 |
|000000a0| 2d 30 34 30 30 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |-0400.Or|ganizati|
|000000b0| 6f 6e 3a 20 52 65 6e 73 | 73 65 6c 61 65 72 20 50 |on: Rens|selaer P|
|000000c0| 6f 6c 79 74 65 63 68 6e | 69 63 20 49 6e 73 74 69 |olytechn|ic Insti|
|000000d0| 74 75 74 65 2c 20 54 72 | 6f 79 20 4e 59 2c 20 55 |tute, Tr|oy NY, U|
|000000e0| 53 41 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |SA.Messa|ge-ID: <|
|000000f0| 50 69 6e 65 2e 53 55 4e | 2e 33 2e 39 31 2e 39 36 |Pine.SUN|.3.91.96|
|00000100| 30 34 31 30 30 30 32 34 | 30 34 2e 32 30 30 32 31 |04100024|04.20021|
|00000110| 42 2d 31 30 30 30 30 30 | 40 62 61 72 68 31 30 38 |B-100000|@barh108|
|00000120| 2e 69 74 73 2e 72 70 69 | 2e 65 64 75 3e 0a 52 65 |.its.rpi|.edu>.Re|
|00000130| 66 65 72 65 6e 63 65 73 | 3a 20 3c 34 6b 65 6e 65 |ferences|: <4kene|
|00000140| 34 24 6e 6b 62 40 70 6f | 73 74 2e 67 73 66 63 2e |4$nkb@po|st.gsfc.|
|00000150| 6e 61 73 61 2e 67 6f 76 | 3e 0a 4e 4e 54 50 2d 50 |nasa.gov|>.NNTP-P|
|00000160| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 62 61 72 |osting-H|ost: bar|
|00000170| 68 31 30 38 2e 69 74 73 | 2e 72 70 69 2e 65 64 75 |h108.its|.rpi.edu|
|00000180| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|00000190| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|000001a0| 20 54 45 58 54 2f 50 4c | 41 49 4e 3b 20 63 68 61 | TEXT/PL|AIN; cha|
|000001b0| 72 73 65 74 3d 55 53 2d | 41 53 43 49 49 0a 58 2d |rset=US-|ASCII.X-|
|000001c0| 53 65 6e 64 65 72 3a 20 | 68 61 73 68 69 6b 40 62 |Sender: |hashik@b|
|000001d0| 61 72 68 31 30 38 2e 69 | 74 73 2e 72 70 69 2e 65 |arh108.i|ts.rpi.e|
|000001e0| 64 75 0a 49 6e 2d 52 65 | 70 6c 79 2d 54 6f 3a 20 |du.In-Re|ply-To: |
|000001f0| 3c 34 6b 65 6e 65 34 24 | 6e 6b 62 40 70 6f 73 74 |<4kene4$|nkb@post|
|00000200| 2e 67 73 66 63 2e 6e 61 | 73 61 2e 67 6f 76 3e 20 |.gsfc.na|sa.gov> |
|00000210| 0a 0a 4f 6e 20 39 20 41 | 70 72 20 31 39 39 36 2c |..On 9 A|pr 1996,|
|00000220| 20 74 79 63 68 6f 20 77 | 72 6f 74 65 3a 0a 0a 3e | tycho w|rote:..>|
|00000230| 20 49 20 63 6f 75 6c 64 | 20 75 73 65 20 73 6f 6d | I could| use som|
|00000240| 65 20 68 65 6c 70 20 77 | 69 74 68 20 72 65 67 61 |e help w|ith rega|
|00000250| 72 64 20 74 6f 20 73 70 | 72 69 6e 74 66 28 29 20 |rd to sp|rintf() |
|00000260| 69 6e 20 43 2b 2b 2e 20 | 20 49 74 20 73 65 65 6d |in C++. | It seem|
|00000270| 73 20 74 68 61 74 20 0a | 3e 20 63 6f 75 74 20 61 |s that .|> cout a|
|00000280| 6e 64 20 63 69 6e 20 77 | 65 72 65 20 69 6e 76 65 |nd cin w|ere inve|
|00000290| 6e 74 65 64 20 74 6f 20 | 61 76 6f 69 64 20 70 72 |nted to |avoid pr|
|000002a0| 69 6e 74 66 28 29 20 61 | 6e 64 20 73 63 61 6e 66 |intf() a|nd scanf|
|000002b0| 28 29 20 62 65 63 61 75 | 73 65 20 74 68 65 0a 3e |() becau|se the.>|
|000002c0| 20 6c 61 74 74 65 72 20 | 68 61 76 65 20 76 61 72 | latter |have var|
|000002d0| 69 61 62 6c 65 20 61 72 | 67 75 6d 65 6e 74 20 6c |iable ar|gument l|
|000002e0| 69 73 74 73 20 61 6e 64 | 20 68 65 6e 63 65 20 63 |ists and| hence c|
|000002f0| 61 6e 27 74 20 62 65 20 | 63 68 65 63 6b 65 64 20 |an't be |checked |
|00000300| 61 67 61 69 6e 73 74 0a | 3e 20 66 75 6e 63 74 69 |against.|> functi|
|00000310| 6f 6e 20 70 72 6f 74 6f | 74 79 70 65 73 2e 20 0a |on proto|types. .|
|00000320| 5b 73 6e 69 70 5d 0a 0a | 4f 6b 69 65 2e 2e 20 68 |[snip]..|Okie.. h|
|00000330| 65 72 65 27 73 20 6d 79 | 20 74 77 6f 20 62 69 74 |ere's my| two bit|
|00000340| 73 2e 20 57 68 61 74 20 | 79 6f 75 20 63 61 6e 20 |s. What |you can |
|00000350| 64 6f 20 69 73 20 74 6f | 20 63 69 6e 2e 67 65 74 |do is to| cin.get|
|00000360| 28 29 20 74 6f 20 61 20 | 62 75 66 66 65 72 2c 20 |() to a |buffer, |
|00000370| 0a 61 6e 64 20 63 68 65 | 63 6b 20 74 68 61 74 20 |.and che|ck that |
|00000380| 61 67 61 69 6e 73 74 20 | 74 68 65 20 66 75 6e 63 |against |the func|
|00000390| 74 69 6f 6e 20 70 72 6f | 74 6f 74 79 70 65 73 2e |tion pro|totypes.|
|000003a0| 20 57 68 79 20 64 6f 20 | 69 74 20 74 68 69 73 20 | Why do |it this |
|000003b0| 77 61 79 3f 20 57 68 65 | 6e 20 0a 63 69 6e 20 69 |way? Whe|n .cin i|
|000003c0| 73 20 72 65 61 64 69 6e | 67 20 69 6e 20 74 6f 20 |s readin|g in to |
|000003d0| 61 20 76 61 72 69 61 62 | 6c 65 2c 20 69 74 20 66 |a variab|le, it f|
|000003e0| 69 72 73 74 20 63 68 65 | 63 6b 73 20 74 6f 20 73 |irst che|cks to s|
|000003f0| 65 65 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |ee if th|ere is a|
|00000400| 20 0a 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 74 | .charac|ter in t|
|00000410| 68 65 20 69 6e 70 75 74 | 20 73 74 72 65 61 6d 2e |he input| stream.|
|00000420| 20 49 66 20 74 68 65 72 | 65 20 69 73 2c 20 69 74 | If ther|e is, it|
|00000430| 20 77 6f 75 6c 64 20 74 | 68 65 6e 20 63 68 65 63 | would t|hen chec|
|00000440| 6b 20 74 6f 20 73 65 65 | 20 69 66 20 0a 69 74 20 |k to see| if .it |
|00000450| 69 73 20 22 63 6f 6d 70 | 61 74 69 62 6c 65 22 20 |is "comp|atible" |
|00000460| 77 69 74 68 20 74 68 65 | 20 76 61 72 69 61 62 6c |with the| variabl|
|00000470| 65 20 69 74 20 67 6f 65 | 73 20 69 6e 74 6f 2e 20 |e it goe|s into. |
|00000480| 49 66 20 6e 6f 74 2c 20 | 69 74 27 6c 6c 20 70 75 |If not, |it'll pu|
|00000490| 73 68 20 69 74 20 0a 62 | 61 63 6b 20 69 6e 74 6f |sh it .b|ack into|
|000004a0| 20 74 68 65 20 69 6e 70 | 75 74 20 73 74 72 65 61 | the inp|ut strea|
|000004b0| 6d 2c 20 74 68 65 6e 20 | 69 74 20 64 65 74 65 63 |m, then |it detec|
|000004c0| 74 73 20 61 6e 20 69 6e | 70 75 74 20 69 6e 20 74 |ts an in|put in t|
|000004d0| 68 65 20 73 74 72 65 61 | 6d 2c 20 0a 63 68 65 63 |he strea|m, .chec|
|000004e0| 6b 2e 2e 2e 2e 20 59 6f | 75 20 67 65 74 20 74 68 |k.... Yo|u get th|
|000004f0| 65 20 69 64 65 61 2e 20 | 53 61 6d 65 20 74 68 69 |e idea. |Same thi|
|00000500| 6e 67 20 68 61 70 70 65 | 6e 73 20 69 6e 20 43 2c |ng happe|ns in C,|
|00000510| 20 74 6f 6f 2e 0a 0a 4e | 65 78 78 0a 0a 45 61 63 | too...N|exx..Eac|
|00000520| 68 20 64 61 79 20 6f 66 | 20 61 20 70 65 72 73 6f |h day of| a perso|
|00000530| 6e 27 73 20 6c 69 66 65 | 20 69 73 20 61 20 62 61 |n's life| is a ba|
|00000540| 74 74 6c 65 3b 0a 54 68 | 65 20 65 6e 74 69 72 65 |ttle;.Th|e entire|
|00000550| 20 6c 69 66 65 20 62 65 | 69 6e 67 20 74 68 65 20 | life be|ing the |
|00000560| 77 61 72 2e 0a 41 20 77 | 61 72 2c 20 6e 6f 74 20 |war..A w|ar, not |
|00000570| 61 67 61 69 6e 73 74 20 | 61 6e 79 62 6f 64 79 20 |against |anybody |
|00000580| 65 6c 73 65 3b 0a 42 75 | 74 20 6f 6e 65 20 66 6f |else;.Bu|t one fo|
|00000590| 75 67 68 74 20 61 67 61 | 69 6e 73 74 20 6f 6e 65 |ught aga|inst one|
|000005a0| 73 65 6c 66 2e 0a 4f 6e | 65 20 6e 65 65 64 20 6e |self..On|e need n|
|000005b0| 65 76 65 72 20 74 6f 20 | 66 69 67 68 74 20 61 6c |ever to |fight al|
|000005c0| 6f 6e 65 3b 0a 46 6f 72 | 20 6f 6e 65 20 73 68 61 |one;.For| one sha|
|000005d0| 6c 74 20 61 6c 77 61 79 | 73 20 68 61 76 65 20 63 |lt alway|s have c|
|000005e0| 6f 6d 70 61 6e 69 6f 6e | 73 20 6f 66 20 74 68 65 |ompanion|s of the|
|000005f0| 20 68 65 61 72 74 2e 0a | 0a 0a | heart..|.. |
+--------+-------------------------+-------------------------+--------+--------+